function video(){}
var c = prompt('输入名字')
video.prototype=
{
	eventCallBind:function()
	{
		//选择事件
		$(".th_inforV>div").click(function()
		{
			if($(this).find("img").css("display")=="block")
				$(this).find("img").css("display","none");
			else
				$(this).find("img").css("display","block");
		});
		//通话事件
		$(".call_person").click(function()
		{
			//%26==& from id to id组
//			window.open("videoCalling.html?from=434515&to=234124%26234523%2646542");
//			tool.skipNextHtml('videoCalling.html');
			var number;
			var videoArr = document.getElementsByClassName("choose_video");
			$.each(videoArr,function(i,videos){
				var displayVal = $(this).css("display");
				if(displayVal == "block"){
					number = $(this).parent("div").attr("number");
					console.log(number);
				}
			})
			if(number!="" && number!=null && number != undefined){
				var sip_number_ = "sip:"+number+"@twm.cm";
				videoCall(sip_number_);
			}
		});
	},
	eventCallingBind:function()
	{
		//滚动事件切换
		
		$(".call_person").click(function()
		{
			window.close();
			tool.skipNextHtml('videoCall.html');
		})
	}
}
var v=new video();
